package com.pj.lib.aura.connection;

import java.io.Serializable;

public class AuraTypeModel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8699885317193118392L;

	public String code;
	public String name;
	public int radius;
	public String actionEnter;
	public String actionTempLeave;
	public String actionReturn;
	public String actionExit;
	public int leavingTime;
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof AuraTypeModel) {
			AuraTypeModel atm = (AuraTypeModel) obj;
			if(atm.code.equals(this.code))
				return true;
			else 
				return false;
		} else {
			return super.equals(obj);
		}
		
	}
	
}
